#import "ALHUDPopUpButton.h"


#pragma mark -
@implementation ALHUDPopUpButton

-(void)keyDown:(NSEvent *)theEvent {
	[self interpretKeyEvents:[NSArray arrayWithObject:theEvent]];
}

-(void)insertTab:(id)sender {
	if ([[self window] firstResponder] == self)
		[[self window] selectNextKeyView:self];
}

-(void)insertBacktab:(id)sender {
	if ([[self window] firstResponder] == self)
		[[self window] selectPreviousKeyView:self];
}

-(void)insertText:(id)insertString {
	if ([insertString isEqualToString:@" "])
		[self performClick:nil];
}

@end
